load("//tensorboard/defs:defs.bzl", "tf_ng_module", "tf_sass_binary", "tf_ts_library")

package(default_visibility = ["//tensorboard:internal"])

licenses(["notice"])

tf_sass_binary(
    name = "data_selection_component_styles",
    src = "data_selection_component.scss",
    deps = ["//tensorboard/webapp:angular_material_sass_deps"],
)

tf_ng_module(
    name = "data_selection",
    srcs = [
        "data_selection_component.ts",
        "data_selection_module.ts",
    ],
    assets = [
        ":data_selection_component_styles",
        "data_selection_component.ng.html",
    ],
    deps = [
        "//tensorboard/webapp/plugins/npmi/store",
        "//tensorboard/webapp/plugins/npmi/store:types",
        "//tensorboard/webapp/plugins/npmi/views/data_selection/metric_arithmetic",
        "//tensorboard/webapp/plugins/npmi/views/data_selection/metric_search",
        "//tensorboard/webapp/plugins/npmi/views/data_selection/results_download",
        "@npm//@angular/common",
        "@npm//@angular/core",
        "@npm//@ngrx/store",
        "@npm//rxjs",
    ],
)

tf_ts_library(
    name = "data_selection_test_lib",
    testonly = True,
    srcs = [
        "data_selection_test.ts",
    ],
    deps = [
        ":data_selection",
        "//tensorboard/webapp:app_state",
        "//tensorboard/webapp/angular:expect_angular_core_testing",
        "//tensorboard/webapp/angular:expect_ngrx_store_testing",
        "//tensorboard/webapp/core/testing",
        "//tensorboard/webapp/plugins/npmi/store",
        "//tensorboard/webapp/plugins/npmi/store:types",
        "//tensorboard/webapp/plugins/npmi/testing",
        "//tensorboard/webapp/testing:mat_icon",
        "@npm//@angular/core",
        "@npm//@angular/platform-browser",
        "@npm//@ngrx/store",
        "@npm//@types/jasmine",
        "@npm//rxjs",
    ],
)
